home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / DisplayP.h.z / DisplayP.h
C/C++ Source or Header  |  2002-10-15  |  4KB  |  156 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /*   $XConsortium: DisplayP.h /main/13 1996/11/21 11:32:08 drk $ */
  12. /* (c) Copyright 1989, 1990  DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  13. /* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  14. /* (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  15. /* (c) Copyright 1988 MICROSOFT CORPORATION */
  16. #ifndef _XmDisplayP_h
  17. #define _XmDisplayP_h
  18.  
  19. #include <Xm/DesktopP.h>
  20. #include <Xm/VendorSEP.h>
  21. #include <Xm/DropSMgr.h>
  22. #include <Xm/Display.h>
  23. #include <Xm/ScreenP.h>
  24.  
  25. /* A little incest */
  26. #include <Xm/DragCP.h>
  27. #include <Xm/VirtKeysP.h>
  28.  
  29. #include <Xm/TearOffP.h>
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. typedef Widget (*XmDisplayGetDisplayProc)(Display *);
  36.  
  37. typedef struct {
  38.     XmDisplayGetDisplayProc GetDisplay;
  39.     XtPointer               extension;
  40.     
  41. #ifdef _SGIMOTIF
  42.     XtPointer    _SG_vendorExtension;
  43. #endif
  44.  
  45. } XmDisplayClassPart;
  46.  
  47. /* 
  48.  * we make it a appShell subclass so it can have it's own instance
  49.  * hierarchy
  50.  */
  51. typedef struct _XmDisplayClassRec{
  52.     CoreClassPart              core_class;
  53.     CompositeClassPart         composite_class;
  54.     ShellClassPart          shell_class;
  55.     WMShellClassPart           wm_shell_class;
  56.     VendorShellClassPart     vendor_shell_class;
  57.     TopLevelShellClassPart     top_level_shell_class;
  58.     ApplicationShellClassPart     application_shell_class;
  59.     XmDisplayClassPart        display_class;
  60. } XmDisplayClassRec;
  61.  
  62. typedef struct _XmModalDataRec{
  63.     Widget                      wid;
  64.     XmVendorShellExtObject    ve;
  65.     XmVendorShellExtObject    grabber;
  66.     Boolean            exclusive;
  67.     Boolean            springLoaded;
  68. } XmModalDataRec, *XmModalData;
  69.  
  70. typedef struct {
  71.     unsigned char        dragInitiatorProtocolStyle;
  72.     unsigned char        dragReceiverProtocolStyle;
  73.  
  74.     unsigned char        userGrabbed; /* flag for menu vs dnd */
  75.  
  76.     WidgetClass            dragContextClass;
  77.     WidgetClass            dropTransferClass;
  78.     WidgetClass            dropSiteManagerClass;
  79.     XmDragContext        activeDC;
  80.     XmDropSiteManagerObject    dsm;
  81.     Time            lastDragTime;
  82.     Window            proxyWindow;
  83.  
  84.     XmModalData            modals;
  85.     Cardinal            numModals;
  86.     Cardinal            maxModals;
  87.     XtPointer            xmim_info;
  88.  
  89.     String            bindingsString;
  90.     XmVKeyBindingRec        *bindings;
  91.     XKeyEvent            *lastKeyEvent;             /* unused */
  92.     unsigned char        keycode_tag[XmKEYCODE_TAG_SIZE]; /* unused */
  93.  
  94.     int                shellCount;
  95.     XtPointer            displayInfo;    /* extension */
  96.     
  97. #ifdef _SGIMOTIF
  98.     XtPointer    _SG_vendorExtension;
  99. #endif
  100.  
  101.     XtPointer                   user_data;
  102.     int                         motif_version ;
  103.     XtEnum                      enable_warp ;
  104.     Cardinal            num_bindings;
  105.     XtCallbackList        dragStartCallback;
  106.     XtCallbackList        noFontCallback;
  107.     XtCallbackList        noRenditionCallback;
  108.     Boolean            displayHasShapeExtension;
  109.  
  110.     XtEnum            enable_btn1_transfer ;
  111.     Boolean            enable_button_tab ;
  112.     Boolean            enable_etched_in_menu;
  113.     Boolean            default_button_emphasis;
  114.     Boolean            enable_toggle_color;
  115.     Boolean            enable_toggle_visual;
  116.     Boolean            enable_drag_icon;
  117.     Boolean            enable_unselectable_drag;
  118.     Boolean                     enable_thin_thickness;
  119.     Boolean            enable_multi_key_bindings;
  120. } XmDisplayPart, *XmDisplayPartPtr;
  121.  
  122. typedef struct _XmDisplayInfo {
  123.   /* so much for information hiding */
  124.   Cursor    SashCursor;        /* Sash.c */
  125.   Widget    destinationWidget;    /* Dest.c */
  126.   Cursor    TearOffCursor;        /* TearOff.c */
  127.   XtPointer    UniqueStamp;        /* UniqueEvnt.c */
  128.   XmExcludedParentPaneRec excParentPane;/* TearOff.c */
  129.   unsigned short resetFocusFlag;    /* TravAct.c */
  130.   Boolean    traversal_in_progress;  /* Traversal.c */
  131. } XmDisplayInfo;
  132.  
  133. typedef struct _XmDisplayRec{
  134.     CorePart         core;
  135.     CompositePart     composite;
  136.     ShellPart         shell;
  137.     WMShellPart        wm;
  138.     VendorShellPart    vendor;
  139.     TopLevelShellPart     topLevel;
  140.     ApplicationShellPart application;
  141.     XmDisplayPart    display;
  142. } XmDisplayRec;
  143.  
  144. externalref XmDisplayClassRec     xmDisplayClassRec;
  145.  
  146. externalref String _Xm_MOTIF_DRAG_AND_DROP_MESSAGE ;
  147.  
  148.  
  149. #ifdef __cplusplus
  150. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  151. #endif
  152.  
  153. #endif /* _XmDisplayP_h */
  154. /* DON'T ADD STUFF AFTER THIS #endif */
  155.  
  156.